/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.server.main;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 *
 * @author daz
 */
public class Main {

    public static void main(String[] args) throws Exception {
        ServerManager server = new ServerManager();
        DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
        Date date = new Date();
        System.out.println("Server starting..." + dateFormat.format(date));
        System.out.println("Max memory    :" + (Runtime.getRuntime().maxMemory() >> 20));
        System.out.println("Free memory   :" + (Runtime.getRuntime().freeMemory() >> 20));
        System.out.println("Total memmory :" + (Runtime.getRuntime().totalMemory() >> 20));
        System.out.println("Use memmory :" + ((Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory()) >> 20));
        server.acceptConnection();
    }
}
